<html>
<head>
<script>
function myFunction(obj)
{
	obj.style.background="blue";
}
</script>
</head>
<body>
Enter your name: <input type="text"	onfocus="myFunction(this)"> </input>
<p>When the input field gets focus, a function is triggered which changes the background-color.</p>
</body>
</html>
